package com.boarsoft.boar.auth;

import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AuthConfig {
	private final static Logger log = LoggerFactory.getLogger(AuthConfig.class);
	private final static Properties prop = new Properties();

	static {
		try {
			log.info("Load boar-soagov config.properties ...");
			prop.load(AuthConfig.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			log.error("Error on load config.properties.", e);
		}
	}

	public static String getProperty(String name) {
		return prop.getProperty(name);
	}
}